Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / JManager Functions
Abstract Window Toolkit Control Functions /


JMExecStaticMethodInContext

Executes a static Java method in a given AWT context thread using the Java Runtime Interface (JRI).

OSStatus JMExecStaticMethodInContext (
                     JMAWTContextRef context,
                     JRIClassID classID,
                     JRIMethodID methodID,
                     UInt32 argCount,
                     JRIValue args[]);
context
The AWT context in whose thread you want the method to execute.
classID
The class ID of the class that contains the method.
methodID
The ID of the method.
argCount
The number of arguments in the method
args[]
The argument list.
function result
A result code; see "JManager Result Codes".
DISCUSSION
Unless you have a particular reason to access the Java Runtime Interface, you should instead make calls to the Java Native Interface, which provides similar functionality.

If you want to execute a nonstatic Java method using the JRI, you should call the JMExecMethodInContext function instead.

You can find documentation on the Java Runtime Interface (JRI) at the Web page

http://developer.netscape.com/

SEE ALSO
The JMExecJNIMethodInContext function.

The JMExecJNIStaticMethodInContext function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
10 DEC 1997